package nz.ac.massey.se.Q7A;

public class Runner {

	
	/**
	 * Design pattern Q7.A
	 * @author Charles Zheng
	 * @id 19029962
	 */
	
	public static void main(String[] args) {
	MandarinSpanishTranslator mandarinSpanishTranslator=new MandarinSpanishTranslator(
			new MandarinEnglishTranslator(),new EnglishSpanishTranslator()
	);
	String mandarineInput="Ni HAO";
	String spanishOutput=mandarinSpanishTranslator.toSpanish(mandarineInput);
	System.out.println(spanishOutput);
	}

}
